www.gusucode.com > 落叶冰点万能企业网站内容管理系统 V9.1 > 落叶冰点万能企业网站内容管理系统 V9.1\code\xcomasp\nd_picsp_index.asp

    <%


'**************************************************************
' 新动软网站管理系统
' 官方网站: http://www.aspcpu.com
' 系统作者: 阮丁远(网名:天 下 程 序)
' Copyright 新动软网站管理系统 版权所有
'**************************************************************


%>
<%


'全局考虑,加on error resume next
on error resume next


dir_set="..\"
nodooooooa=0
if have_a1="" then
have_a1="1"
'***********************************************
'函数名:JoinChar
'作  用:向地址中加入 ? 或 &
'参  数:strUrl  ----网址
'返回值:加了 ? 或 & 的网址
'***********************************************
function JoinChar(strUrl)
	if strUrl="" then
		JoinChar=""
		exit function
	end if
	if InStr(strUrl,"?")<len(strUrl) then 
		if InStr(strUrl,"?")>1 then
			if InStr(strUrl,"&")<len(strUrl) then 
				JoinChar=strUrl & "&"
			else
				JoinChar=strUrl
			end if
		else
			JoinChar=strUrl & "?"
		end if
	else
		JoinChar=strUrl
	end if
end function
'Dim Fy_Url,Fy_a,Fy_x,Fy_Cs(),Fy_Cl,Fy_Ts,Fy_Zx
'---定义部份  头------
Fy_Cl = 2               '处理方式:1=提示信息,2=转向页面,3=先提示再转向
Fy_Zx = "/Error.Asp"        '出错时转向的页面
'---定义部份  尾------


'ruandingyuan xiugai


Fy_Url=Request.ServerVariables("QUERY_STRING")
Fy_a=split(Fy_Url,"&")
redim Fy_Cs(ubound(Fy_a))
for Fy_x=0 to ubound(Fy_a)
Fy_Cs(Fy_x) = left(Fy_a(Fy_x),instr(Fy_a(Fy_x),"=")-1)
Next
For Fy_x=0 to ubound(Fy_Cs)
If Fy_Cs(Fy_x)<>"" Then
If Instr(LCase(Request(Fy_Cs(Fy_x))),"'")<>0 or Instr(LCase(Request(Fy_Cs(Fy_x))),"and ")<>0 or Instr(LCase(Request(Fy_Cs(Fy_x))),"and%20")<>0 or Instr(LCase(Request(Fy_Cs(Fy_x))),"select")<>0 or (Instr(LCase(Request(Fy_Cs(Fy_x))),"update")<>0 and Instr(LCase(Request(Fy_Cs(Fy_x))),"set")<>0) or Instr(LCase(Request(Fy_Cs(Fy_x))),"chr")<>0 or Instr(LCase(Request(Fy_Cs(Fy_x))),"delete%20from")<>0 or (Instr(LCase(Request(Fy_Cs(Fy_x))),"delete")<>0 and  Instr(LCase(Request(Fy_Cs(Fy_x))),"from")<>0) or Instr(LCase(Request(Fy_Cs(Fy_x))),";")<>0 or  (Instr(LCase(Request(Fy_Cs(Fy_x))),"insert")<>0 and  Instr(LCase(Request(Fy_Cs(Fy_x))),"into")<>0)  or Instr(LCase(Request(Fy_Cs(Fy_x))),"mid")<>0 Or Instr(LCase(Request(Fy_Cs(Fy_x))),"master.")<>0 Then
Select Case Fy_Cl
  Case "1"
Response.Write "<Script Language=JavaScript>alert('出现错误!参数 "&Fy_Cs(Fy_x)&" 的值中包含非法字符串!\n\n  请不要在参数中出现:;,and%20,select%20,update%20,insert%20,delete,chr 等非法字符!);window.close();</Script>"
  Case "2"
Response.Write "<Script Language=JavaScript>location.href='"&Fy_Zx&"'</Script>"
  Case "3"
Response.Write "<Script Language=JavaScript>alert('出现错误!参数 "&Fy_Cs(Fy_x)&"的值中包含非法字符串!\n\n  请不要在参数中出现:;,and%20,select%20,update%20,insert%20,delete%20,chr 等非法字符!);location.href='"&Fy_Zx&"';</Script>"
End Select
nodooooooa=1
Response.End
End If
End If
Next



'post方式的sql注入,则直接禁止站点外部提交post
if lcase(Request.Servervariables("REQUEST_METHOD"))="post" then
    server_v1=Cstr(Request.ServerVariables("HTTP_REFERER"))
    server_v2=Cstr(Request.ServerVariables("SERVER_NAME"))
    if mid(server_v1,8,len(server_v2))<>server_v2 then

 nodooooooa=1

    response.write "<br><br><center><table border=1 cellpadding=20 bordercolor=black bgcolor=#EEEEEE width=450>"
    response.write "<tr><td style='font:9pt Verdana'>"
    response.write "你提交的路径有误,禁止从站点外部提交数据,请不要乱该参数!"
    response.write "</td></tr></table></center>"
    response.end
    end if

end if

nd_web_output_folder_b="xndasp"
nd_web_output_folder_qiye_b="xcomasp"
'Dim ConnStr

if nodooooooa=0 then
 ConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(dir_set&"data\##%20newDdata8-5-2##.mdb")
Set newdsoft_conn_obj = Server.CreateObject("ADODB.Connection")
newdsoft_conn_obj.open ConnStr
If Err Then
Err.Clear
Set newdsoft_conn_obj = Nothing
Response.Write "数据库连接出错,请检查Conn.asp文件中的数据库参数设置。"
Response.End
End If
end if
if request("ruandingyuan_do")="getinfox" then
response.write "本站使用新"&""&"动"&"软系统制作,"&"系"&"统"&"作"&"者:"&"阮"&""&"丁"&"远,官网:ww"&"w.as"&"pcpu.com"
response.end
end if
J_True = "True"
J_False = "False"
J_Now = "Now()"  '获得现在的时间
end if





'放在这,以免标签循环嵌套导致本函数循环定义而导致asp错误
'放在这,以免标签循环嵌套导致本函数循环定义而导致asp错误
if is_haved_g_fontaa="" then
is_haved_g_fontaa="1"

Function getFontMode(str, vColor, vFont,vSize)
		Dim FontStr, tColor
		Dim ColorStr, arrColor
		
		If IsNull(str) Then
			getFontMode = ""
			Exit Function
		End If
		getFontMode = str
	

	FontStr=str



		
		Select Case CInt(vFont)
			Case 1
				FontStr = "<b>" & str & "</b>"
			Case 2
				FontStr = "<em>" & str & "</em>"
			Case 3
				FontStr = "<u>" & str & "</u>"
			Case 4
				FontStr = "<b><em>" & str & "</em></b>"
			Case 5
				FontStr = "<b><u>" & str & "</u></b>"
			Case 6
				FontStr = "<em><u>" & str & "</u></em>"
			Case 7
				FontStr = "<b><em><u>" & str & "</u></em></b>"
		Case Else
			FontStr = str
		End Select
		getFontMode = FontStr
		
		If vColor = ""  Then Exit Function


		'ColorStr = "," & InitTitleColor
		'arrColor = Split(ColorStr, ",")
		'If vColor > UBound(arrColor) Then Exit Function
		'tColor = Trim(arrColor(vColor))

              if vColor ="0" then 

'ssscolor="<font style='font-size:"&vSize&" px;'>"
'ssscolor2="</font>"


else

'ssscolor="<font color="&vColor&" style='font-size:"&vSize&" px;'>"
'ssscolor2="</font>"

ssscolor="<span style='color:"&vColor&";'>"
ssscolor2="</span>"


end if


		getFontMode = ssscolor& FontStr & ssscolor2
	End Function



end if




'放在这,以免标签循环嵌套导致本函数循环定义而导致asp错误
if haved_atype_a="" then
haved_atype_a="1"
function get_art_type(in1)
get_art_type="" 
if in1="1" then get_art_type="<font color=red>[图文]</font>"
if in1="2" then get_art_type="<font color=red>[组图]</font>"
if in1="3" then get_art_type="<font color=red>[新闻]</font>"
if in1="4" then get_art_type="<font color=red>[推荐]</font>"
if in1="5" then get_art_type="<font color=red>[注意]</font>"
if in1="6" then get_art_type="<font color=red>[转载]</font>"
if in1="7" then get_art_type="<font color=red>[最新]</font>"




end function


end if


'放在这,以免标签循环嵌套导致本函数循环定义而导致asp错误	
function findx_price(grade_id,str)
		
		rst2=""
if str<>"" then
other_params=split(str,"|")
for i=0 to ubound(other_params)

sss11=split(other_params(i),":")
sss11a=sss11(0)
sss11b=sss11(1)
if cstr(sss11a)=cstr(grade_id) then

rst2=sss11b

exit for
end if


next

end if

if isnumeric(rst2)<>true then

rst2=""
end if


findx_price=rst2
end function








'放在这,以免标签循环嵌套导致本函数循环定义而导致asp错误
Function n_RemoveHTML_mdx(strHTML) 
n_RemoveHTML_md=""
on error resume next
strHTML=cstr(strHTML&"")
Set objRegExp = New Regexp 
objRegExp.IgnoreCase = True 
objRegExp.Global = True 
'取闭合的<> 
objRegExp.Pattern = "<.+?>" 
'进行匹配 
Set Matches = objRegExp.Execute(strHTML) 
' 遍历匹配集合,并替换掉匹配的项目 
For Each Match in Matches 
strHtml=Replace(strHTML,Match.Value,"") 
Next 
n_RemoveHTML_mdx=strHTML 
Set objRegExp = Nothing 
End Function 







'放在这,以免标签循环嵌套导致本函数循环定义而导致asp错误

function replace_huanhangz(cont)

cont=replace(cont,vbcrlf,"$$sx_aspcodex_huanhang$")

cont=replace(cont,chr(10),"$$sx_aspcodex_huanhang$")
cont= Replace(cont, CHR(13), "$$sx_aspcodex_huanhang$")
cont= Replace(cont, CHR(9), "$$sx_aspcodex_huanhang$")
cont=replace(cont,"=","$zzdenghaoaspcpu1$")
cont=replace(cont,"&","$zzadnnhaoaspcpu1$")
cont=replace(cont,"?","$zzwnnehaoaspcpu1$")


replace_huanhangz=cont

end function








           '放在这,以免标签循环嵌套导致本函数循环定义而导致asp错误
		Function UrlEncoding_x(DataStr)

			StrReturn = ""
			For Si = 1 To Len(DataStr)
				ThisChr = Mid(DataStr, Si, 1)
				If Abs(Asc(ThisChr)) < &HFF Then
					StrReturn = StrReturn & ThisChr
				Else
					InnerCode = Asc(ThisChr)
					If InnerCode < 0 Then
					   InnerCode = InnerCode + &H10000
					End If
					Hight8 = (InnerCode And &HFF00) \ &HFF
					Low8 = InnerCode And &HFF
					StrReturn = StrReturn & "%" & Hex(Hight8) & "%" & Hex(Low8)
				End If
			Next
			UrlEncoding_x = StrReturn
		End Function










%><%
'**************************************************************
' 新 动 软 网 站 管 理系统
' 系统作者: 阮 丁 远(网名:天 下 程 序)
' Copyright (C)  新 动 软 网站 管 理 系 统 版 权 所有
'**************************************************************
%>
<%

if have_added_funb="" then

have_added_funb=1
isnnn=0
function isnnum(num1)
  If isnumeric(num1) = 0 Or IsNull(num1) or num1 = "" Then

     isnnn=0                      
else
isnnn=1

end if

end function
function isddat(n1)
 If n1 = "" Or IsNull(n1) or IsDate(n1)=false Then

     isnnn=0                      
else
isnnn=1
end if
end function
function isyn(n1)

    isnnn=9999
 If n1 = true or n1=1 Then

     isnnn=1                     
end if

 If n1 = false or n1=0  Then

     isnnn=0                     
end if
end function
function get_rs_value(num1)
execute("rsaaaaaaa1="&rsxxx1112&"("&num1&")")
get_rs_value=rsaaaaaaa1
end function
Function nohtml(ByVal str)
Set regEx = New RegExp
    If IsNull(str) Or Trim(str) = "" Then
        nohtml = ""
        Exit Function
    End If
    regEx.Pattern = "(\<.[^\<]*\>)"
    str = regEx.Replace(str, "")
    regEx.Pattern = "(\<\/[^\<]*\>)"
    str = regEx.Replace(str, "")
    regEx.Pattern = "\[NextPage(.*?)\]"   '解决“当在文章模块的频道中发布的是图片并使用分页标签[NextPage]或内容开始的前几行就使用分页标签时,一旦使用搜索来搜索该文时,搜索页就会显示分页标签”的问题
    str = regEx.Replace(str, "")
    
    str = Replace(str, "'", "")
    str = Replace(str, Chr(34), "")
    str = Replace(str, vbCrLf, "")
    str = Trim(str)
    nohtml = str
End Function
Public Function ReplaceBadChar(strChar)
    If strChar = "" Or IsNull(strChar) Then
        ReplaceBadChar = ""
        Exit Function
    End If
    'Dim strBadChar, arrBadChar, tempChar, i
    strBadChar = "',%,^,&,?,(,),<,>,[,],{,},/,\,;,:,exists,select,update,insert,=," & Chr(34) & "," & Chr(0) & ""
    arrBadChar = Split(strBadChar, ",")
    tempChar = strChar
    For i = 0 To UBound(arrBadChar)
        tempChar = Replace(tempChar, arrBadChar(i), "")
    Next
    ReplaceBadChar = tempChar
End Function


Function GetSubStr(ByVal str, ByVal strlen, bShowPoint)
    If str = "" Then
        GetSubStr = ""
        Exit Function
    End If
    'Dim l, t, c, i, strTemp
    str = Replace(Replace(Replace(Replace(str, "&nbsp;", " "), "&quot;", Chr(34)), "&gt;", ">"), "&lt;", "<")
    l = Len(str)
    t = 0
    strTemp = str
    If strlen = "" Then
        strlen = 0
    Else
        strlen = CLng(strlen)
    End If
    For i = 1 To l
        c = Abs(Asc(Mid(str, i, 1)))
        If c > 255 Then
            t = t + 2
        Else
            t = t + 1
        End If
        If t >= strlen Then
            strTemp = Left(str, i)
            Exit For
        End If
    Next
    If strTemp <> str And bShowPoint = True Then
        strTemp = strTemp & "…"
    End If
    GetSubStr = Replace(Replace(Replace(Replace(strTemp, " ", "&nbsp;"), Chr(34), "&quot;"), ">", "&gt;"), "<", "&lt;")
End Function

ComeUrl = Trim(Request.ServerVariables("HTTP_REFERER"))
Action = Trim(Request("Action"))
FoundErr = False
ErrMsg = ""
If Right(InstallDir, 1) <> "/" Then
    strInstallDir = InstallDir & "/"
Else
    strInstallDir = InstallDir
End If
Site_Sn = Replace(Replace(LCase(Request.ServerVariables("SERVER_NAME") & InstallDir), "/", ""), ".", "")
'*************************************************
'函数名:gotTopic
'作  用:截字符串,汉字一个算两个字符,英文算一个字符
'参  数:str   ----原字符串
'       strlen ----截取长度
'返回值:截取后的字符串
'*************************************************
function gotTopic(str,strlen)
	if isnull(str) or str="" then
		gotTopic=""
		exit function
	end if
	'dim l,t,c, i
	str=replace(replace(replace(replace(str,"&nbsp;"," "),"&quot;",chr(34)),"&gt;",">"),"&lt;","<")
	l=len(str)
	t=0
	for i=1 to l
		c=Abs(Asc(Mid(str,i,1)))
		if c>255 then
			t=t+2
		else
			t=t+1
		end if
		if t>=strlen then
			gotTopic=left(str,i) & "…"
			exit for
		else
			gotTopic=str
		end if
	next
	gotTopic=replace(replace(replace(replace(gotTopic," ","&nbsp;"),chr(34),"&quot;"),">","&gt;"),"<","&lt;")
end function
'**************************************************
'函数名:strLength
'作  用:求字符串长度。汉字算两个字符,英文算一个字符。
'参  数:str  ----要求长度的字符串
'返回值:字符串长度
'**************************************************
function strLength(str)
	'ON ERROR RESUME NEXT
	'dim WINNT_CHINESE
	WINNT_CHINESE    = (len("中国")=2)
	if WINNT_CHINESE then
        'dim l,t,c
        'dim i
        l=len(str)
        t=l
        for i=1 to l
        	c=asc(mid(str,i,1))
            if c<0 then c=c+65536
            if c>255 then
                t=t+1
            end if
        next
        strLength=t
    else 
        strLength=len(str)
    end if
    if err.number<>0 then err.clear
end function
end if
%>







<html>
<head>



        <title><%'complie-link:label-strat[$$get_title($xx_request_asp$id,1,$xx_request_asp$cid,picsp,$xx_request_asp$arid,1)] %>

<%
tttile=""
ctypee="picsp"
cide=request("cid")

cnide=request("id")
ctide=request("arid")
isqy=1

zide=request("zid")

if lcase(trim(ctypee))="article" then

biaoqqa="[ND_Article_class]"
biaoqq="[ND_Article]"
biaoqqz="[ND_Article_Special]"
end if
if lcase(trim(ctypee))="down" then

biaoqqa="[ND_down_class]"
biaoqq="[ND_down]"
biaoqqz="[ND_down_Special]"
end if
if lcase(trim(ctypee))="picsp" then

biaoqqa="[ND_pic_or_sp_class]"
biaoqq="[ND_pic_or_sp]"
biaoqqz="[ND_pic_or_sp_Special]"
end if

if lcase(trim(ctypee))="cp" then

biaoqqa="[ND_prod_class]"
biaoqq="[ND_prod]"
biaoqqz="[ND_prod_Special]"
end if


if trim(ctide)<>"" and trim(cstr(ctide))<>"0" then

set rs_kkkk21a=server.createobject("adodb.recordset")
sql="select * from "&biaoqq&" where id="&ctide
rs_kkkk21a.open sql,newdsoft_conn_obj,1,1

if not rs_kkkk21a.eof then
tttile=tttile&" -"&rs_kkkk21a("title")
end if

end if




if trim(zide)<>"" and trim(cstr(zide))<>"0"  then

set rs_kkkk21ax=server.createobject("adodb.recordset")
sql="select * from "&biaoqqz&" where id="&zide
rs_kkkk21ax.open sql,newdsoft_conn_obj,1,1

if not rs_kkkk21ax.eof then
tttile=tttile&" -"&rs_kkkk21ax("Specialname")
end if

end if









if trim(cide)<>"" and trim(cstr(cide))<>"0"   then

set rs_kkkk21=server.createobject("adodb.recordset")
sql="select * from "&biaoqqa&" where id="&cide
rs_kkkk21.open sql,newdsoft_conn_obj,1,1

if not rs_kkkk21.eof then
tttile=tttile&" -"&rs_kkkk21("classname")

fffidx=split(rs_kkkk21("parent_id_list"),",")
for iinn=ubound(fffidx) to 0 step -1
ssixc=clng(fffidx(iinn))
if ssixc<>0 then

set rs_kkkk21b=server.createobject("adodb.recordset")
sql="select * from "&biaoqqa&" where id="&ssixc
rs_kkkk21b.open sql,newdsoft_conn_obj,1,1
tttile=tttile&" -"&rs_kkkk21b("classname")
rs_kkkk21b.close
set rs_kkkk21b=nothing
end if

next


end if

end if

if trim(cnide)<>""  and trim(cstr(cnide))<>"0"   then

set rs_kkkk211=server.createobject("adodb.recordset")
sql="select * from ND_channel where sys_content_type_name='"&cnide&"'"
rs_kkkk211.open sql,newdsoft_conn_obj,1,1

if not rs_kkkk211.eof then
tttile=tttile&" -"&rs_kkkk211("name")
end if

end if


	   biao2="[ND_sys]"

if cstr(isqy)<>"1" then
set rs22t=server.CreateObject("adodb.recordset")
rs22t.open "select top 1 * from "&biao2&" where type='webname_settings'",newdsoft_conn_obj,1,1
else
set rs22t=server.CreateObject("adodb.recordset")
rs22t.open "select top 1 * from "&biao2&" where type='webname_settings_qiye'",newdsoft_conn_obj,1,1
end if

wwwkeywords=""

if not rs22t.eof then
sss1a=split(rs22t("data"),"|")
wwwname=sss1a(0)
wemail=sss1a(1)
wwwkeywords=sss1a(2)
wwwbuttom=sss1a(3)

tttile=tttile&" -"&wwwname
end if







ttypw=cstr(1)



if ttypw="1" then response.write tttile
if ttypw="2" then response.write tttile&","&wwwkeywords
if ttypw="3" then response.write tttile

%><%'complie-link:label-end[$$get_title($xx_request_asp$id,1,$xx_request_asp$cid,picsp,$xx_request_asp$arid,1)] %></title>
<meta name="keywords" content="<%'complie-link:label-strat[$$get_title($xx_request_asp$id,2,$xx_request_asp$cid,picsp,$xx_request_asp$arid,1)] %>

<%
tttile=""
ctypee="picsp"
cide=request("cid")

cnide=request("id")
ctide=request("arid")
isqy=1

zide=request("zid")

if lcase(trim(ctypee))="article" then

biaoqqa="[ND_Article_class]"
biaoqq="[ND_Article]"
biaoqqz="[ND_Article_Special]"
end if
if lcase(trim(ctypee))="down" then

biaoqqa="[ND_down_class]"
biaoqq="[ND_down]"
biaoqqz="[ND_down_Special]"
end if
if lcase(trim(ctypee))="picsp" then

biaoqqa="[ND_pic_or_sp_class]"
biaoqq="[ND_pic_or_sp]"
biaoqqz="[ND_pic_or_sp_Special]"
end if

if lcase(trim(ctypee))="cp" then

biaoqqa="[ND_prod_class]"
biaoqq="[ND_prod]"
biaoqqz="[ND_prod_Special]"
end if


if trim(ctide)<>"" and trim(cstr(ctide))<>"0" then

set rs_kkkk21a=server.createobject("adodb.recordset")
sql="select * from "&biaoqq&" where id="&ctide
rs_kkkk21a.open sql,newdsoft_conn_obj,1,1

if not rs_kkkk21a.eof then
tttile=tttile&" -"&rs_kkkk21a("title")
end if

end if




if trim(zide)<>"" and trim(cstr(zide))<>"0"  then

set rs_kkkk21ax=server.createobject("adodb.recordset")
sql="select * from "&biaoqqz&" where id="&zide
rs_kkkk21ax.open sql,newdsoft_conn_obj,1,1

if not rs_kkkk21ax.eof then
tttile=tttile&" -"&rs_kkkk21ax("Specialname")
end if

end if









if trim(cide)<>"" and trim(cstr(cide))<>"0"   then

set rs_kkkk21=server.createobject("adodb.recordset")
sql="select * from "&biaoqqa&" where id="&cide
rs_kkkk21.open sql,newdsoft_conn_obj,1,1

if not rs_kkkk21.eof then
tttile=tttile&" -"&rs_kkkk21("classname")

fffidx=split(rs_kkkk21("parent_id_list"),",")
for iinn=ubound(fffidx) to 0 step -1
ssixc=clng(fffidx(iinn))
if ssixc<>0 then

set rs_kkkk21b=server.createobject("adodb.recordset")
sql="select * from "&biaoqqa&" where id="&ssixc
rs_kkkk21b.open sql,newdsoft_conn_obj,1,1
tttile=tttile&" -"&rs_kkkk21b("classname")
rs_kkkk21b.close
set rs_kkkk21b=nothing
end if

next


end if

end if

if trim(cnide)<>""  and trim(cstr(cnide))<>"0"   then

set rs_kkkk211=server.createobject("adodb.recordset")
sql="select * from ND_channel where sys_content_type_name='"&cnide&"'"
rs_kkkk211.open sql,newdsoft_conn_obj,1,1

if not rs_kkkk211.eof then
tttile=tttile&" -"&rs_kkkk211("name")
end if

end if


	   biao2="[ND_sys]"

if cstr(isqy)<>"1" then
set rs22t=server.CreateObject("adodb.recordset")
rs22t.open "select top 1 * from "&biao2&" where type='webname_settings'",newdsoft_conn_obj,1,1
else
set rs22t=server.CreateObject("adodb.recordset")
rs22t.open "select top 1 * from "&biao2&" where type='webname_settings_qiye'",newdsoft_conn_obj,1,1
end if

wwwkeywords=""

if not rs22t.eof then
sss1a=split(rs22t("data"),"|")
wwwname=sss1a(0)
wemail=sss1a(1)
wwwkeywords=sss1a(2)
wwwbuttom=sss1a(3)

tttile=tttile&" -"&wwwname
end if







ttypw=cstr(2)



if ttypw="1" then response.write tttile
if ttypw="2" then response.write tttile&","&wwwkeywords
if ttypw="3" then response.write tttile

%><%'complie-link:label-end[$$get_title($xx_request_asp$id,2,$xx_request_asp$cid,picsp,$xx_request_asp$arid,1)] %>" />
<meta name="description" content="<%'complie-link:label-strat[$$get_title($xx_request_asp$id,3,$xx_request_asp$cid,picsp,$xx_request_asp$arid,1)] %>

<%
tttile=""
ctypee="picsp"
cide=request("cid")

cnide=request("id")
ctide=request("arid")
isqy=1

zide=request("zid")

if lcase(trim(ctypee))="article" then

biaoqqa="[ND_Article_class]"
biaoqq="[ND_Article]"
biaoqqz="[ND_Article_Special]"
end if
if lcase(trim(ctypee))="down" then

biaoqqa="[ND_down_class]"
biaoqq="[ND_down]"
biaoqqz="[ND_down_Special]"
end if
if lcase(trim(ctypee))="picsp" then

biaoqqa="[ND_pic_or_sp_class]"
biaoqq="[ND_pic_or_sp]"
biaoqqz="[ND_pic_or_sp_Special]"
end if

if lcase(trim(ctypee))="cp" then

biaoqqa="[ND_prod_class]"
biaoqq="[ND_prod]"
biaoqqz="[ND_prod_Special]"
end if


if trim(ctide)<>"" and trim(cstr(ctide))<>"0" then

set rs_kkkk21a=server.createobject("adodb.recordset")
sql="select * from "&biaoqq&" where id="&ctide
rs_kkkk21a.open sql,newdsoft_conn_obj,1,1

if not rs_kkkk21a.eof then
tttile=tttile&" -"&rs_kkkk21a("title")
end if

end if




if trim(zide)<>"" and trim(cstr(zide))<>"0"  then

set rs_kkkk21ax=server.createobject("adodb.recordset")
sql="select * from "&biaoqqz&" where id="&zide
rs_kkkk21ax.open sql,newdsoft_conn_obj,1,1

if not rs_kkkk21ax.eof then
tttile=tttile&" -"&rs_kkkk21ax("Specialname")
end if

end if









if trim(cide)<>"" and trim(cstr(cide))<>"0"   then

set rs_kkkk21=server.createobject("adodb.recordset")
sql="select * from "&biaoqqa&" where id="&cide
rs_kkkk21.open sql,newdsoft_conn_obj,1,1

if not rs_kkkk21.eof then
tttile=tttile&" -"&rs_kkkk21("classname")

fffidx=split(rs_kkkk21("parent_id_list"),",")
for iinn=ubound(fffidx) to 0 step -1
ssixc=clng(fffidx(iinn))
if ssixc<>0 then

set rs_kkkk21b=server.createobject("adodb.recordset")
sql="select * from "&biaoqqa&" where id="&ssixc
rs_kkkk21b.open sql,newdsoft_conn_obj,1,1
tttile=tttile&" -"&rs_kkkk21b("classname")
rs_kkkk21b.close
set rs_kkkk21b=nothing
end if

next


end if

end if

if trim(cnide)<>""  and trim(cstr(cnide))<>"0"   then

set rs_kkkk211=server.createobject("adodb.recordset")
sql="select * from ND_channel where sys_content_type_name='"&cnide&"'"
rs_kkkk211.open sql,newdsoft_conn_obj,1,1

if not rs_kkkk211.eof then
tttile=tttile&" -"&rs_kkkk211("name")
end if

end if


	   biao2="[ND_sys]"

if cstr(isqy)<>"1" then
set rs22t=server.CreateObject("adodb.recordset")
rs22t.open "select top 1 * from "&biao2&" where type='webname_settings'",newdsoft_conn_obj,1,1
else
set rs22t=server.CreateObject("adodb.recordset")
rs22t.open "select top 1 * from "&biao2&" where type='webname_settings_qiye'",newdsoft_conn_obj,1,1
end if

wwwkeywords=""

if not rs22t.eof then
sss1a=split(rs22t("data"),"|")
wwwname=sss1a(0)
wemail=sss1a(1)
wwwkeywords=sss1a(2)
wwwbuttom=sss1a(3)

tttile=tttile&" -"&wwwname
end if







ttypw=cstr(3)



if ttypw="1" then response.write tttile
if ttypw="2" then response.write tttile&","&wwwkeywords
if ttypw="3" then response.write tttile

%><%'complie-link:label-end[$$get_title($xx_request_asp$id,3,$xx_request_asp$cid,picsp,$xx_request_asp$arid,1)] %>" />

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">


<link href="css/ndd.css" rel="stylesheet" type="text/css">
</head>





<body><%'complie-link:label-strat[$$nd_qiyez_css()] %><!--nd_complie_linkx_start:[$$nd_qiyez_css()]xx-->




<div><style type="text/css">

#globalNavArea {

position:relative;

width:auto;

color:#4096b2;

background:url(img/hd_nav_darkSel.gif) repeat-x;

clear: both;

float: none;

margin-top: 0px;

margin-right: 0px;

margin-bottom: 0px;

margin-left: 0px;
}

#globalNavUL {margin:0px 0px 0px 0px;;padding:0;height:25px;width:100%;background:url(img/hd_nav_unsel.gif) repeat-x;}
#globalNavUL li{line-height:14px;z-index:40000;margin:0 0 -1px;padding:0;float:left;position:relative;list-style-type:none;list-style-image:none;list-style-position:outside;}

/*#globalNavUL li a{font-weight:bold;color:#3d5b81;display:block;padding:8px 15px 7px 14px;text-decoration:none;background:url(img/hd_nav_sep.gif) no-repeat right 0;}
#globalNavUL li a:hover{font-weight:bold;color:#fff;display:block;padding:8px 15px 7px 14px;text-decoration:none;background:url(img/hd_nav_sel.gif) no-repeat right 0;}
*/

#aaabb {line-height:14px;z-index:40000;margin:0px;padding:0;float:left;position:relative;list-style-type:none;list-style-image:none;list-style-position:outside;}



#aaabb a{font-weight:bold;color:#3d5b81;display:block;padding:8px 15px 7px 14px;text-decoration:none;background:url(img/hd_nav_sep.gif) no-repeat right 0;}
#aaabb a:hover{font-weight:bold;color:#fff;display:block;padding:8px 15px 7px 14px;text-decoration:none;background:url(img/hd_nav_sel.gif) no-repeat right 0;}





#globalNavUL .navdark2 {font-weight:bold;display:block;padding:8px 18px 8px 18px;color:#4096b2;background:url(img/hd_nav_darkSel.gif) repeat-x;}
#globalNavUL .navdark {color:#4096b2;background:url(hd_nav_darkSel.gif) repeat-x;}
#globalNavUL li.navdark a{font-weight:bold;color:#3d5b81;display:block;padding:8px 14px 7px 13px;text-decoration:none;background:url(img/hd_nav_darkSel.gif) no-repeat right 0;}
#globalNavUL li.navdark a:hover{font-weight:bold;color:#fff;display:block;padding:7px 14px 7px 13px;text-decoration:none;background:url(img/hd_nav_sel.gif) no-repeat right 0;}

#globalNavUL .selmenulinks {font-weight:bold;color:#fff;display:block;padding:8px 15px 7px 14px;text-decoration:none;background:url(img/hd_nav_sel.gif) no-repeat right 0;}

#globalNavmid {clear:both;background:#37aac9 url(hd_sub_bg2.gif) repeat-x;height:26px;border-top:0px solid #33a1be;margin:0 auto;}
#globalNavbot {clear:both;background:#d8e7ee url(img/nav_bot.gif) repeat-x;height:6px;border-bottom:1px solid #fff;margin:0 auto;font-size:1px;line-height:0px;}
#midbanner, #midbanner a, #midbanner img {line-height:1px;margin:0;padding:0;border:0;}
#midbanner {overflow:hidden;}
#pageMain, .maincol, .globalMain {position:relative;margin:0px 5px 0px 6px;width:970px;background:#fff;overflow:hidden;}
.globalBody {position:relative;margin:0px 5px 0px 6px;width:970px;background:#fff;overflow:hidden;}







.mastheadLinks {

width: 150px;
}
.mastheadLinks ul li {

text-align: left;

line-height: 50%;

list-style-type: none;

padding-top: 0px;

padding-right: 0;

padding-bottom: 0px;

padding-left: 2px;

margin-top: 5px;

margin-right: 0px;

margin-bottom: 0px;

margin-left: 0px;
}</style></div><!--nd_complie_linkx_end:[$$nd_qiyez_css()]xx--><%'complie-link:label-end[$$nd_qiyez_css()] %>
<table width="1003"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="200" height="3" align="center" valign="bottom" bgcolor="CC0000"></td>
    <td width="734" height="3" align="center" valign="bottom" bgcolor="555F67"></td>
  </tr>
</table>
<table width="1003"  border="0" align="center" cellpadding="0" cellspacing="0" background="img/bzbg.jpg">
  <tr>
    <td width="241" height="81" align="center"><%'complie-link:label-strat[$$nd_logo()] %><!--nd_complie_linkx_start:[$$nd_logo()]xx-->




<div><img height="60" alt="" hspace="4" width="130" vspace="2" border="0" src="img/logo.gif" /></div><!--nd_complie_linkx_end:[$$nd_logo()]xx--><%'complie-link:label-end[$$nd_logo()] %></td>
    <td width="762" height="81" align="center"><table width="90%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="right"><img src="img/t1.jpg" width="11" height="10" hspace="3"><font color="999999"> <a href="index.asp">返回首页</a> </font> <img src="img/t3.jpg" width="9" height="10" hspace="3"> <font color="999999"><a onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://');" href="#">设为首页</a> </font></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="1003"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="34" align="center" valign="middle" background="img/hd_nav_darkSel.gif"><%'complie-link:label-strat[$$nd_menu1a(1,12)] %><!--nd_complie_linkx_start:[$$nd_menu1a(1,12)]xx-->
 
<%
'**************************************************************
' 新 动 软 网 站 管 理系统
' 系统作者: 阮 丁 远(网名:天 下 程  序)
' Copyright (C)  新 动 软 网站 管 理 系 统 版 权 所有
'**************************************************************
%>
 


<%if havecssa_addedddxz="" then

havecssa_addedddxz="1"
%>

<%end if%>





 <table style="margin: 0px" cellspacing="0" cellpadding="0" width="100%" border="0">

<%'complie-link:label-strat[$$include_get_font_str()] %><!--nd_complie_linkx_start:[$$include_get_font_str()]xx-->

<%

'本函数已放在adminKernel/cmplie_conn.....那个文件里,以免标签循环嵌套导致本函数循环定义而导致asp错误,但不能删本标签


%><!--nd_complie_linkx_end:[$$include_get_font_str()]xx--><%'complie-link:label-end[$$include_get_font_str()] %><%
CurrentPage9131923237=replacebadchar(request("page9131923237"))
if CurrentPage9131923237="" then
CurrentPage9131923237=1
else if not IsNumeric(CurrentPage9131923237) then
CurrentPage9131923237=1
else if int(CurrentPage9131923237)<=0 then
CurrentPage9131923237=1
else
CurrentPage9131923237=replaceBadchar(request("page9131923237"))
end if
end if
end if
yyyy1=12

sql="select [ND_channel].id,[ND_channel].lanmu_type,[ND_channel].sys_content_type_name,[ND_channel].is_hidden,[ND_channel].name,[ND_channel].is_link_class,[ND_channel].is_open_use_blank,[ND_channel].orders,[ND_channel].outlink,[ND_channel].titleColor,[ND_channel].titleFont,[ND_channel].channel_file_url,[ND_channel].dyn_channel_file_url,[ND_channel].channel_pic,[ND_channel].is_qiye from [ND_channel] where [ND_channel].is_qiye=1 and is_hidden='0' order by clng(orders) asc"
%>

<%
maxperpage9131923237=9999
xxxx1=clng(9999/yyyy1)
if (9999 mod yyyy1)<>0 then
xxxx1=xxxx1+1
end if
'获取自身文件名
 aryxx     =split(Request.ServerVariables("SCRIPT_NAME"),"/")   
 fileNamexx   =   aryxx(ubound(aryxx))
strFileName=fileNamexx
set rs_x1=server.CreateObject("adodb.recordset")
rs_x1.open sql,newdsoft_conn_obj,1,1
 if not rs_x1.eof then
rs_x1.pagesize=MaxPerpage9131923237
totalnumber9131923237=rs_x1.recordcount
if totalnumber9131923237 mod maxperpage9131923237=0 then
MaxPage= totalnumber9131923237 \ MaxPerpage9131923237
else
MaxPage= totalnumber9131923237 \ MaxPerpage9131923237+1
end if
if int(CurrentPage9131923237)>int(MaxPage) then
CurrentPage9131923237=MaxPage
else
CurrentPage9131923237=CurrentPage9131923237
end if
rs_x1.absolutepage=CurrentPage9131923237
for ni9131923237=1 to xxxx1
if rs_x1.eof then exit for
%><%%>                                        <tr>
                                            <td colspan="2" height="10" align="center">
                                            <div id="globalNavArea">
                                            <ul id="globalNavUL"><%for bj9131923237=1 to yyyy1
if rs_x1.eof then exit for
%><%
if rs_x1("is_link_class")="1" then

aurl=rs_x1("outlink")
else
aurl=rs_x1("dyn_channel_file_url")
end if

if  rs_x1("is_open_use_blank")="1" then
sopbln="_blank"
else

sopbln="_self"
end if
%>


<%
'获取字体的html
nd_ret_font=getFontMode(rs_x1("name"),rs_x1("titleColor"),rs_x1("titleFont"),13)
%>




<%
nd_ret_font=nd_ret_font
%><%
%>                                               <li class="navdark">



<div id="aaabb"><a target="<%=sopbln%>" href="<%=aurl%>"><%=nd_ret_font%></a></div></li><%
rs_x1.movenext
next
%> </ul>
                                            </div>
                                            </td>
                                        </tr><%next
%>  
<%
else
%>
<%=nd_sys_nocontent_msg_x_b%><%nd_sys_nocontent_msg_x_b=""%>
<%end if
%>
<%if 0=1 then %>
<tr>
<td  colspan="7" align="center" height="27" >
<%
call showpage9131923237(strFileName,totalnumber9131923237,MaxPerPage9131923237,true,true,"个",CurrentPage9131923237)
%>
</td>
</tr>
<%end if
%></table><!--nd_complie_linkx_end:[$$nd_menu1a(1,12)]xx--><%'complie-link:label-end[$$nd_menu1a(1,12)] %></td>
  </tr>
</table>
<table width="1003"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="999" height="246" hspace="0" vspace="0" align="middle">
      <param name="movie" value="swf/topbn.swf">
      <param name="quality" value="high"><param name="SCALE" value="exactfit">
      <embed src="swf/topbn.swf" width="999" height="246" hspace="0" vspace="0" align="middle" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" scale="exactfit"></embed>
    </object></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="2" align="left" valign="top" bgcolor="DDDDDD"></td>
  </tr>
</table>

















<table width="1003"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr align="center" valign="top">
    <td width="196" height="547">
	  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
	  <table width="180"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#dddddd">
        <tr>
          <td height="28" background="img/menubg.jpg"><table width="85%"  border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="61%" align="center"><strong><font color="000000">导航菜单</font></strong> </td>
                <td width="39%" class="eng">Menu</td>
              </tr>
          </table></td>
        </tr>
        <tr>
          <td align="center" valign="middle" bgcolor="#FFFFFF"><table width="180" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="80" align="center"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="160" align="center" valign="middle"><%'complie-link:label-strat[$$picsp_class_tree_z(nd_picsp_index.asp,15,$xx_request_asp$id,0)] %><!--nd_complie_linkx_start:[$$picsp_class_tree_z(nd_picsp_index.asp,15,$xx_request_asp$id,0)]xx-->

<%
'如果第一级分类有子分类,点第一级分类时是否先不进入其分类链接,而先展开子分类
ishiddenfirstaa="0"
'展开第二级子分类时,展开全部(如3,4,5级),还是只是第二级分类
iskkallaa=cstr(0)


biao="[ND_pic_or_sp_class]"

biaosp="[ND_pic_or_sp_Special]"
biao2="[ND_pic_or_sp]"

sys_content_type=request("id")


current_root_id=0

back_call_set_in_which_deepth=-123

  function next_cen9696914222(pid_list,deepth)



  
set rs=server.CreateObject("adodb.recordset")


pppcid="-123"
if pid_list<>"" then
ppplista=split(pid_list,",")
ppplistaubd=ubound(ppplista)-1
pppcid=ppplista(ppplistaubd)
end if  
  
rs.open "select * from "&biao&" where ((deepth="&deepth&" and ((parent_id_list like '%"&pid_list&"%') or (parent_id='"&pppcid&"'))) and sys_content_type='"&sys_content_type&"')  order by clng(orders) asc",newdsoft_conn_obj,1,1

if pid_list<>"" then
lista=split(pid_list,",")
numa=ubound(lista)
p_id=cstr(lista(numa))

else

p_id=0

end if





i_stp=0


do while  not rs.eof

if deepth=0 then current_root_id=rs("id")

if deepth=0 then back_call_set_in_which_deepth=-123




pid_list222=rs("parent_id_list")&","&rs("id")&","
deepth222=rs("deepth")+1


    set rs2=server.CreateObject("adodb.recordset")    
rs2.open "select * from "&biao&" where ((deepth="&deepth222&" and ((parent_id_list like '%"&pid_list222&"%') or (parent_id='"&rs("id")&"'))) and sys_content_type='"&sys_content_type&"')  order by clng(orders) asc",newdsoft_conn_obj,1,1


if deepth=0 then
styleaa="display:inline"
else
styleaa="display:none"
end if

if cstr(rs("id"))=cstr(request("cid")) then
styleaa="display:inline"
back_call_set_in_which_deepth=deepth
end if




idddddd="_"&current_root_id&"_"&deepth&"_"&i_stp



if rs2.eof then


if pid_list<>"" then
lista=split(pid_list,",")
numa=ubound(lista)
p_id=cstr(lista(numa-1))

else

p_id=0

end if
if p_id=0 then p_id=-1




sedesdsz="&id="&sys_content_type
if rs("is_link_class")="1" then

suuurl=rs("outlink")
else

suuurl="nd_picsp_index.asp?cid="&rs("id")&sedesdsz

end if

if rs("is_open_use_blank")="1" then

ssss1="_blank"
else
ssss1="_self"
end if




hrfffffffa=suuurl





response.write "<script language=javascript>"&vbcrlf
response.write "var stutas_zi_tree_"&idddddd&"=0;"&vbcrlf
response.write "function cpshow_zi_tree"&idddddd&"(funn,nnnn,digui,url){"&vbcrlf



response.write "if (digui==1){"&vbcrlf


response.write "if(stutas_zi_tree_"&idddddd&"==0){"&vbcrlf



response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='inline';"&vbcrlf


response.write "stutas_zi_tree_"&idddddd&"=1;}"&vbcrlf



response.write "else{"&vbcrlf



response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='none';"&vbcrlf


response.write "stutas_zi_tree_"&idddddd&"=0;"&vbcrlf

response.write "}"&vbcrlf
response.write "}"&vbcrlf



'递归,展开下一层分类
response.write "if (nnnn==1){"&vbcrlf

response.write "var aaaaa;"&vbcrlf

response.write "var aaaaav=0;"&vbcrlf

response.write "var posa;"&vbcrlf

response.write "var posb;"&vbcrlf

response.write "var rootid;"&vbcrlf

response.write "var deepppp;"&vbcrlf

response.write "var nummmmm;"&vbcrlf

response.write "for(var ttt=0;ttt<=funn.length-1;ttt++){"&vbcrlf


response.write "aaaaa=funn.substring(ttt,ttt+1);"&vbcrlf


response.write "if ((aaaaa=='_')&&(aaaaav==0)){aaaaav=aaaaav+1;continue;}"&vbcrlf

response.write "if ((aaaaa=='_')&&(aaaaav==1)){aaaaav=aaaaav+1;posa=ttt;continue;}"&vbcrlf

response.write "if ((aaaaa=='_')&&(aaaaav==2)){aaaaav=aaaaav+1;posb=ttt;}"&vbcrlf


response.write "}"&vbcrlf


response.write "rootid=funn.substring(1,posa);"&vbcrlf

response.write "deepppp=parseInt(funn.substring(posa+1,posb));"&vbcrlf

response.write "nummmmm=parseInt(funn.substring(posb+1,funn.length));"&vbcrlf




response.write "var deepi=deepppp+1;"&vbcrlf

response.write "var nummi=0;"&vbcrlf

response.write "for(nummi=0;nummi<=9999;nummi++){"&vbcrlf

response.write "try{"&vbcrlf


response.write "eval('cpshow_zi_tree_'+rootid+'_'+deepi+'_'+nummi+'(\''+'_'+rootid+'_'+deepi+'_'+nummi+'\',0,1,\'\')');}"&vbcrlf


response.write "catch(e)"&vbcrlf

response.write "{"&vbcrlf

response.write "if(nummi>22){"&vbcrlf

response.write "nummi=9999;break;}"&vbcrlf


response.write "}"&vbcrlf


response.write "}"&vbcrlf



response.write "}"&vbcrlf


response.write "if(url!=''){self.location=url;}"&vbcrlf



response.write "}"&vbcrlf


response.write "</script>"&vbcrlf













response.write "<div id='cptree"&idddddd&"' style='"&styleaa&"'>"
response.write "<a href='"&hrfffffffa&"' target='"&ssss1&"' class=menu>"
%><%for iiiii1=2 to cint(deepth222)
if iiiii1=cint(deepth222) then
response.write "├"
%><%
else
response.write "│"
%><%
end if
next
%><%=left(rs("classname"),15)%><%


response.write "</a><br>"
response.write "</div>"


if not rs.eof then rs.movenext




'back_call_set_in_which_deepth+1 加1是为了展开当前分类的下一级分类
if back_call_set_in_which_deepth<>-123 and ( deepth<=back_call_set_in_which_deepth+1 or iskkallaa="1") then


response.write "<script language=javascript>"

response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='inline';"


response.write "</script>"

end if




if rs.eof or rs.bof then

 'response.write "</level0>"


'call next_cen_class(pid_list222,deepth222)

exit function

else

need_benji_next=1

end if





else




'response.write "<level0 id="""&rs("id")&"""  parentTypeID="""



'if deepth=0 then response.write "-1" else  response.write p_id


'response.write """ caption="""&rs("ClassName")&"""  PRI=""2"" explain="""&rs("id")&""" >"&vbcrlf

%><%

sedesdsz="&id="&sys_content_type



if deepth=0 then
if ishiddenfirstaa<>"1"  then
hrfffffffa="nd_picsp_index.asp?cid="&rs("id")&sedesdsz
hrfffffffab=hrfffffffa
else
hrfffffffa="javascript:"
hrfffffffab=""
end if
else
hrfffffffa="nd_picsp_index.asp?cid="&rs("id")&sedesdsz
hrfffffffab=hrfffffffa
end if

if iskkallaa<>"1" then
iskkallaacc="0"
else
iskkallaacc="1"
end if


styleaax=" onclick="&chr(34)&"cpshow_zi_tree"&idddddd&"('"&idddddd&"',1,0,'&"&hrfffffffab&"&')"&chr(34)&" "


response.write "<script language=javascript>"&vbcrlf
response.write "var stutas_zi_tree_"&idddddd&"=0;"&vbcrlf
response.write "function cpshow_zi_tree"&idddddd&"(funn,nnnn,digui,url){"&vbcrlf



response.write "if (digui==1){"&vbcrlf


response.write "if(stutas_zi_tree_"&idddddd&"==0){"&vbcrlf



response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='inline';"&vbcrlf


response.write "stutas_zi_tree_"&idddddd&"=1;}"&vbcrlf



response.write "else{"&vbcrlf



response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='none';"&vbcrlf


response.write "stutas_zi_tree_"&idddddd&"=0;"&vbcrlf

response.write "}"&vbcrlf
response.write "}"&vbcrlf



'递归,展开下一层分类
response.write "if (nnnn==1){"&vbcrlf

response.write "var aaaaa;"&vbcrlf

response.write "var aaaaav=0;"&vbcrlf

response.write "var posa;"&vbcrlf

response.write "var posb;"&vbcrlf

response.write "var rootid;"&vbcrlf

response.write "var deepppp;"&vbcrlf

response.write "var nummmmm;"&vbcrlf

response.write "for(var ttt=0;ttt<=funn.length-1;ttt++){"&vbcrlf


response.write "aaaaa=funn.substring(ttt,ttt+1);"&vbcrlf


response.write "if ((aaaaa=='_')&&(aaaaav==0)){aaaaav=aaaaav+1;continue;}"&vbcrlf

response.write "if ((aaaaa=='_')&&(aaaaav==1)){aaaaav=aaaaav+1;posa=ttt;continue;}"&vbcrlf

response.write "if ((aaaaa=='_')&&(aaaaav==2)){aaaaav=aaaaav+1;posb=ttt;}"&vbcrlf


response.write "}"&vbcrlf


response.write "rootid=funn.substring(1,posa);"&vbcrlf

response.write "deepppp=parseInt(funn.substring(posa+1,posb));"&vbcrlf

response.write "nummmmm=parseInt(funn.substring(posb+1,funn.length));"&vbcrlf




response.write "var deepi=deepppp+1;"&vbcrlf

response.write "var nummi=0;"&vbcrlf

response.write "for(nummi=0;nummi<=9999;nummi++){"&vbcrlf

response.write "try{"&vbcrlf


response.write "eval('cpshow_zi_tree_'+rootid+'_'+deepi+'_'+nummi+'(\''+'_'+rootid+'_'+deepi+'_'+nummi+'\',"&iskkallaacc&",1,\'\')');}"&vbcrlf


response.write "catch(e)"&vbcrlf

response.write "{"&vbcrlf

response.write "if(nummi>22){"&vbcrlf

response.write "nummi=9999;break;}"&vbcrlf


response.write "}"&vbcrlf


response.write "}"&vbcrlf



response.write "}"&vbcrlf


response.write "if(url!=''){self.location=url;}"&vbcrlf



response.write "}"&vbcrlf


response.write "</script>"&vbcrlf




sedesdsz="&id="&request("id")
if rs("is_link_class")="1" then

suuurl=rs("outlink")
else

suuurl=hrfffffffa

end if

if rs("is_open_use_blank")="1" then

ssss1="_blank"
else
ssss1="_self"
end if





'"&styleaax&" 一定不要放在<div id='cptree....里,不然会因为<div的嵌套而导致循环调用onclick
response.write "<div id='cptree"&idddddd&"' style='"&styleaa&"' >"
response.write "<a href='"&suuurl&"' "&styleaax&" target='"&ssss1&"' class=menu>"

%><%for iiiii1=2 to cint(deepth222)
if iiiii1=cint(deepth222) then
response.write "├"
else
response.write "│"
end if
next
%><%=left(rs("classname"),15)%><%
response.write "</a><br>"

call next_cen9696914222(pid_list222,deepth222)



response.write "</div>"

'back_call_set_in_which_deepth+1 加1是为了展开当前分类的下一级分类
if back_call_set_in_which_deepth<>-123 and ( deepth<=back_call_set_in_which_deepth+1 or iskkallaa="1") then


response.write "<script language=javascript>"

response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='inline';"


response.write "</script>"


end if





if not rs.eof then rs.movenext

need_benji_next=1

if rs.eof or rs.bof then

'if deepth<>0  then response.write "</level0>"


'call next_cen_class(pid_list222,deepth222)

exit function


end if











end if


if need_benji_next=0 then

exit do

end if

need_benji_next=0
i_stp=i_stp+1

loop



end function




call next_cen9696914222("",0)


%><!--nd_complie_linkx_end:[$$picsp_class_tree_z(nd_picsp_index.asp,15,$xx_request_asp$id,0)]xx--><%'complie-link:label-end[$$picsp_class_tree_z(nd_picsp_index.asp,15,$xx_request_asp$id,0)] %></td>
                    </tr>
                </table></td>
              </tr>
          </table></td>
        </tr>
      </table>













	
	
	
	
	
	
	
	
	
	<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="180"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#dddddd">
  <tr>
    <td height="28" background="img/menubg.jpg"><table width="85%"  border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="61%" align="center"><strong><font color="000000">产品搜索</font></strong> </td>
          <td width="39%" class="eng">Search</td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td align="center" valign="middle" bgcolor="#FFFFFF"><table width="180" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="80" align="center"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td align="center">
                  <table width="80%"  border="0" align="center" cellpadding="0" cellspacing="0">
                   <form action="nd_do_prod_search.asp" method="get">  <tr>
                      <td height="5"></td>
                    </tr>
                    <tr>
                      <td height="28" align="right"><input name="data" 
            class="textbox" id="data" style="BORDER-TOP-WIDTH: 1px; PADDING-RIGHT: 1px; PADDING-LEFT: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 9pt; BORDER-LEFT-COLOR: #c0c0c0; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #c0c0c0; PADDING-BOTTOM: 1px; CURSOR: hand; COLOR: #666666; BORDER-TOP-COLOR: #c0c0c0; PADDING-TOP: 1px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; HEIGHT: 20px; BACKGROUND-COLOR: #f7f7f7; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #c0c0c0 " value="请输入产品关键字..." size="18" maxlength="64" /></td>
                    </tr>
                    <tr>
                      <td height="28" align="right">    
                        <input name="imageField322" type="image" src="img/sear.gif" width="80" height="21" border="0" /></td>
                    </tr></form>
                  </table>
              </td>
            </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="180"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#dddddd">
  <tr>
    <td height="28" background="img/menubg.jpg"><table width="85%"  border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="61%" align="center"><strong><font color="000000">产品导航</font></strong> </td>
          <td width="39%" class="eng">Prolist</td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td align="center" valign="middle" bgcolor="#FFFFFF"><table width="180" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="120" align="center" valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table>
              
			  
			  
			  
			  
			  
			  
			  
			  
			  
			  
			  
			  
			  
			  
			  
			  
			  
			  
			  
			  
              <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td align="left"><%'complie-link:label-strat[$$prod_class_tree_z(nd_prod_list.asp,15,"cp_id36",0)] %><!--nd_complie_linkx_start:[$$prod_class_tree_z(nd_prod_list.asp,15,"cp_id36",0)]xx-->

<%
'如果第一级分类有子分类,点第一级分类时是否先不进入其分类链接,而先展开子分类
ishiddenfirstaa="0"
'展开第二级子分类时,展开全部(如3,4,5级),还是只是第二级分类
iskkallaa=cstr(0)


biao="[ND_prod_class]"
biaog="[ND_userGroup]"
biaosp="[ND_prod_Special]"
biao2="[ND_prod]"

sys_content_type="cp_id36"


current_root_id=0

back_call_set_in_which_deepth=-123

  function next_cen9506088124(pid_list,deepth)



  
set rs=server.CreateObject("adodb.recordset")


pppcid="-123"
if pid_list<>"" then
ppplista=split(pid_list,",")
ppplistaubd=ubound(ppplista)-1
pppcid=ppplista(ppplistaubd)
end if  
  
rs.open "select * from "&biao&" where ((deepth="&deepth&" and ((parent_id_list like '%"&pid_list&"%') or (parent_id='"&pppcid&"'))) and sys_content_type='"&sys_content_type&"')  order by clng(orders) asc",newdsoft_conn_obj,1,1

if pid_list<>"" then
lista=split(pid_list,",")
numa=ubound(lista)
p_id=cstr(lista(numa))

else

p_id=0

end if





i_stp=0


do while  not rs.eof

if deepth=0 then current_root_id=rs("id")

if deepth=0 then back_call_set_in_which_deepth=-123




pid_list222=rs("parent_id_list")&","&rs("id")&","
deepth222=rs("deepth")+1


    set rs2=server.CreateObject("adodb.recordset")    
rs2.open "select * from "&biao&" where ((deepth="&deepth222&" and ((parent_id_list like '%"&pid_list222&"%') or (parent_id='"&rs("id")&"'))) and sys_content_type='"&sys_content_type&"')  order by clng(orders) asc",newdsoft_conn_obj,1,1


if deepth=0 then
styleaa="display:inline"
else
styleaa="display:none"
end if

if cstr(rs("id"))=cstr(request("cid")) then
styleaa="display:inline"
back_call_set_in_which_deepth=deepth
end if




idddddd="_"&current_root_id&"_"&deepth&"_"&i_stp



if rs2.eof then


if pid_list<>"" then
lista=split(pid_list,",")
numa=ubound(lista)
p_id=cstr(lista(numa-1))

else

p_id=0

end if
if p_id=0 then p_id=-1




sedesdsz="&id="&sys_content_type
if rs("is_link_class")="1" then

suuurl=rs("outlink")
else

suuurl="nd_prod_list.asp?cid="&rs("id")&sedesdsz

end if

if rs("is_open_use_blank")="1" then

ssss1="_blank"
else
ssss1="_self"
end if




hrfffffffa=suuurl





response.write "<script language=javascript>"&vbcrlf
response.write "var stutas_zi_tree_"&idddddd&"=0;"&vbcrlf
response.write "function cpshow_zi_tree"&idddddd&"(funn,nnnn,digui,url){"&vbcrlf



response.write "if (digui==1){"&vbcrlf


response.write "if(stutas_zi_tree_"&idddddd&"==0){"&vbcrlf



response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='inline';"&vbcrlf


response.write "stutas_zi_tree_"&idddddd&"=1;}"&vbcrlf



response.write "else{"&vbcrlf



response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='none';"&vbcrlf


response.write "stutas_zi_tree_"&idddddd&"=0;"&vbcrlf

response.write "}"&vbcrlf
response.write "}"&vbcrlf



'递归,展开下一层分类
response.write "if (nnnn==1){"&vbcrlf

response.write "var aaaaa;"&vbcrlf

response.write "var aaaaav=0;"&vbcrlf

response.write "var posa;"&vbcrlf

response.write "var posb;"&vbcrlf

response.write "var rootid;"&vbcrlf

response.write "var deepppp;"&vbcrlf

response.write "var nummmmm;"&vbcrlf

response.write "for(var ttt=0;ttt<=funn.length-1;ttt++){"&vbcrlf


response.write "aaaaa=funn.substring(ttt,ttt+1);"&vbcrlf


response.write "if ((aaaaa=='_')&&(aaaaav==0)){aaaaav=aaaaav+1;continue;}"&vbcrlf

response.write "if ((aaaaa=='_')&&(aaaaav==1)){aaaaav=aaaaav+1;posa=ttt;continue;}"&vbcrlf

response.write "if ((aaaaa=='_')&&(aaaaav==2)){aaaaav=aaaaav+1;posb=ttt;}"&vbcrlf


response.write "}"&vbcrlf


response.write "rootid=funn.substring(1,posa);"&vbcrlf

response.write "deepppp=parseInt(funn.substring(posa+1,posb));"&vbcrlf

response.write "nummmmm=parseInt(funn.substring(posb+1,funn.length));"&vbcrlf




response.write "var deepi=deepppp+1;"&vbcrlf

response.write "var nummi=0;"&vbcrlf

response.write "for(nummi=0;nummi<=9999;nummi++){"&vbcrlf

response.write "try{"&vbcrlf


response.write "eval('cpshow_zi_tree_'+rootid+'_'+deepi+'_'+nummi+'(\''+'_'+rootid+'_'+deepi+'_'+nummi+'\',0,1,\'\')');}"&vbcrlf


response.write "catch(e)"&vbcrlf

response.write "{"&vbcrlf

response.write "if(nummi>22){"&vbcrlf

response.write "nummi=9999;break;}"&vbcrlf


response.write "}"&vbcrlf


response.write "}"&vbcrlf



response.write "}"&vbcrlf


response.write "if(url!=''){self.location=url;}"&vbcrlf



response.write "}"&vbcrlf


response.write "</script>"&vbcrlf













response.write "<div id='cptree"&idddddd&"' style='"&styleaa&"'>"
response.write "<a href='"&hrfffffffa&"' target='"&ssss1&"' class=menu>"
%><%for iiiii1=2 to cint(deepth222)
if iiiii1=cint(deepth222) then
response.write "├"
%><%
else
response.write "│"
%><%
end if
next
%><%=left(rs("classname"),15)%><%


response.write "</a><br>"
response.write "</div>"


if not rs.eof then rs.movenext




'back_call_set_in_which_deepth+1 加1是为了展开当前分类的下一级分类
if back_call_set_in_which_deepth<>-123 and ( deepth<=back_call_set_in_which_deepth+1 or iskkallaa="1") then


response.write "<script language=javascript>"

response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='inline';"


response.write "</script>"

end if




if rs.eof or rs.bof then

 'response.write "</level0>"


'call next_cen_class(pid_list222,deepth222)

exit function

else

need_benji_next=1

end if





else




'response.write "<level0 id="""&rs("id")&"""  parentTypeID="""



'if deepth=0 then response.write "-1" else  response.write p_id


'response.write """ caption="""&rs("ClassName")&"""  PRI=""2"" explain="""&rs("id")&""" >"&vbcrlf

%><%

sedesdsz="&id="&sys_content_type



if deepth=0 then
if ishiddenfirstaa<>"1"  then
hrfffffffa="nd_prod_list.asp?cid="&rs("id")&sedesdsz
hrfffffffab=hrfffffffa
else
hrfffffffa="javascript:"
hrfffffffab=""
end if
else
hrfffffffa="nd_prod_list.asp?cid="&rs("id")&sedesdsz
hrfffffffab=hrfffffffa
end if

if iskkallaa<>"1" then
iskkallaacc="0"
else
iskkallaacc="1"
end if


styleaax=" onclick="&chr(34)&"cpshow_zi_tree"&idddddd&"('"&idddddd&"',1,0,'&"&hrfffffffab&"&')"&chr(34)&" "


response.write "<script language=javascript>"&vbcrlf
response.write "var stutas_zi_tree_"&idddddd&"=0;"&vbcrlf
response.write "function cpshow_zi_tree"&idddddd&"(funn,nnnn,digui,url){"&vbcrlf



response.write "if (digui==1){"&vbcrlf


response.write "if(stutas_zi_tree_"&idddddd&"==0){"&vbcrlf



response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='inline';"&vbcrlf


response.write "stutas_zi_tree_"&idddddd&"=1;}"&vbcrlf



response.write "else{"&vbcrlf



response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='none';"&vbcrlf


response.write "stutas_zi_tree_"&idddddd&"=0;"&vbcrlf

response.write "}"&vbcrlf
response.write "}"&vbcrlf



'递归,展开下一层分类
response.write "if (nnnn==1){"&vbcrlf

response.write "var aaaaa;"&vbcrlf

response.write "var aaaaav=0;"&vbcrlf

response.write "var posa;"&vbcrlf

response.write "var posb;"&vbcrlf

response.write "var rootid;"&vbcrlf

response.write "var deepppp;"&vbcrlf

response.write "var nummmmm;"&vbcrlf

response.write "for(var ttt=0;ttt<=funn.length-1;ttt++){"&vbcrlf


response.write "aaaaa=funn.substring(ttt,ttt+1);"&vbcrlf


response.write "if ((aaaaa=='_')&&(aaaaav==0)){aaaaav=aaaaav+1;continue;}"&vbcrlf

response.write "if ((aaaaa=='_')&&(aaaaav==1)){aaaaav=aaaaav+1;posa=ttt;continue;}"&vbcrlf

response.write "if ((aaaaa=='_')&&(aaaaav==2)){aaaaav=aaaaav+1;posb=ttt;}"&vbcrlf


response.write "}"&vbcrlf


response.write "rootid=funn.substring(1,posa);"&vbcrlf

response.write "deepppp=parseInt(funn.substring(posa+1,posb));"&vbcrlf

response.write "nummmmm=parseInt(funn.substring(posb+1,funn.length));"&vbcrlf




response.write "var deepi=deepppp+1;"&vbcrlf

response.write "var nummi=0;"&vbcrlf

response.write "for(nummi=0;nummi<=9999;nummi++){"&vbcrlf

response.write "try{"&vbcrlf


response.write "eval('cpshow_zi_tree_'+rootid+'_'+deepi+'_'+nummi+'(\''+'_'+rootid+'_'+deepi+'_'+nummi+'\',"&iskkallaacc&",1,\'\')');}"&vbcrlf


response.write "catch(e)"&vbcrlf

response.write "{"&vbcrlf

response.write "if(nummi>22){"&vbcrlf

response.write "nummi=9999;break;}"&vbcrlf


response.write "}"&vbcrlf


response.write "}"&vbcrlf



response.write "}"&vbcrlf


response.write "if(url!=''){self.location=url;}"&vbcrlf



response.write "}"&vbcrlf


response.write "</script>"&vbcrlf




sedesdsz="&id="&request("id")
if rs("is_link_class")="1" then

suuurl=rs("outlink")
else

suuurl=hrfffffffa

end if

if rs("is_open_use_blank")="1" then

ssss1="_blank"
else
ssss1="_self"
end if





'"&styleaax&" 一定不要放在<div id='cptree....里,不然会因为<div的嵌套而导致循环调用onclick
response.write "<div id='cptree"&idddddd&"' style='"&styleaa&"' >"
response.write "<a href='"&suuurl&"' "&styleaax&" target='"&ssss1&"' class=menu>"

%><%for iiiii1=2 to cint(deepth222)
if iiiii1=cint(deepth222) then
response.write "├"
else
response.write "│"
end if
next
%><%=left(rs("classname"),15)%><%
response.write "</a><br>"

call next_cen9506088124(pid_list222,deepth222)



response.write "</div>"

'back_call_set_in_which_deepth+1 加1是为了展开当前分类的下一级分类
if back_call_set_in_which_deepth<>-123 and ( deepth<=back_call_set_in_which_deepth+1 or iskkallaa="1") then


response.write "<script language=javascript>"

response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='inline';"


response.write "</script>"


end if





if not rs.eof then rs.movenext

need_benji_next=1

if rs.eof or rs.bof then

'if deepth<>0  then response.write "</level0>"


'call next_cen_class(pid_list222,deepth222)

exit function


end if











end if


if need_benji_next=0 then

exit do

end if

need_benji_next=0
i_stp=i_stp+1

loop



end function




call next_cen9506088124("",0)


%><!--nd_complie_linkx_end:[$$prod_class_tree_z(nd_prod_list.asp,15,"cp_id36",0)]xx--><%'complie-link:label-end[$$prod_class_tree_z(nd_prod_list.asp,15,"cp_id36",0)] %></td>
                </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
	
	
	
	
	
	
	
	
	





















	</td>
    <td width="1" bgcolor="dddddd"></td>
    <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table>      <table width="96%" border=0 align="center" cellpadding=0 cellspacing=6>
      <tr valign=bottom>
        <td width="4%" align="right"><b><img src="img/M.jpg" width="12" height="13" hspace="3"></b></td>
        <td width="96%"><b><strong><%'complie-link:label-strat[$$get_lanmu_ming($xx_request_asp$id)] %><!--nd_complie_linkx_start:[$$get_lanmu_ming($xx_request_asp$id)]xx-->

<%
tttile=""

cnide=request("id")

if trim(cnide)<>""  and trim(cstr(cnide))<>"0"   then

set rs_kkkk211=server.createobject("adodb.recordset")
sql="select * from ND_channel where sys_content_type_name='"&cnide&"'"
rs_kkkk211.open sql,newdsoft_conn_obj,1,1

if not rs_kkkk211.eof then
tttile=tttile&rs_kkkk211("name")
end if

end if


response.write tttile

%><!--nd_complie_linkx_end:[$$get_lanmu_ming($xx_request_asp$id)]xx--><%'complie-link:label-end[$$get_lanmu_ming($xx_request_asp$id)] %></strong> | </b></td>
      </tr>
      <tr>
        <td colspan="2">
          <table height=1 cellspacing=0 cellpadding=0 width="100%" 
                        border=0>
            <tr>
              <td width="20%" bgcolor=#ff0000 height=2></td>
              <td width="72%" bgcolor=#dddddd  height=2></td>
            </tr>
        </table></td>
      </tr>
    </table>
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
      </table>
      <br>
      <table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
        <tr>
          <td align="left" valign="middle" class="gs" style="word-break:break-all">&nbsp;</td>
        </tr>
        <tr>
          <td height="73" align="center" valign="middle" class="gs"><%'complie-link:label-strat[$$picsp_pic_list($xx_request_asp$cid,130,125,450,22,2,8,nd_view_picsp.asp,1,1,$xx_request_asp$id)] %><!--nd_complie_linkx_start:[$$picsp_pic_list($xx_request_asp$cid,130,125,450,22,2,8,nd_view_picsp.asp,1,1,$xx_request_asp$id)]xx-->
 
<%
'**************************************************************
' 新 动 软 网 站 管 理系统
' 系统作者: 阮 丁 远(网名:天 下 程  序)
' Copyright (C)  新 动 软 网站 管 理 系 统 版 权 所有
'**************************************************************
%>
<%
wwwll=130+7
hhhll=125+7
hhhllk=125+7+15

hhhllk2=125+7+15+15
wwwll2=130+7+10
%>

<style type="text/css">
<!--
.cpcp {width:130 px;height:125 px;}
.cpcpb {width:<%=wwwll%> px;height:<%=hhhll%> px;}
.cpcpbx {width:<%=wwwll%> px;height:<%=hhhllk%> px;}
.cpcpbxx {width:<%=wwwll2%> px;height:<%=hhhllk2%> px;}
.nolnk a{text-decoration: none;}
--></style>

<table   border="0" cellpadding="0" cellspacing="0" width="450">
<%
CurrentPage9030641374=replacebadchar(request("page9030641374"))
if CurrentPage9030641374="" then
CurrentPage9030641374=1
else if not IsNumeric(CurrentPage9030641374) then
CurrentPage9030641374=1
else if int(CurrentPage9030641374)<=0 then
CurrentPage9030641374=1
else
CurrentPage9030641374=replaceBadchar(request("page9030641374"))
end if
end if
end if
yyyy1=2

sql="select [ND_pic_or_sp].id,[ND_pic_or_sp].sys_content_type,[ND_pic_or_sp].title,[ND_pic_or_sp].classid,[ND_pic_or_sp].SpecialID,[ND_pic_or_sp].titleColor,[ND_pic_or_sp].titleFont,[ND_pic_or_sp].index_page_pic,[ND_pic_or_sp].content,[ND_pic_or_sp].is_outlink,[ND_pic_or_sp].outlink,[ND_pic_or_sp].Author_nick,[ND_pic_or_sp].is_new,[ND_pic_or_sp].is_tuijian,[ND_pic_or_sp].isTop,[ND_pic_or_sp].Hits,[ND_pic_or_sp].DayHits,[ND_pic_or_sp].MonthHits,[ND_pic_or_sp].HitsTime,[ND_pic_or_sp].WriteTime,[ND_pic_or_sp].username,[ND_pic_or_sp].out_and_inner_img_list,[ND_pic_or_sp].UploadImage_list,[ND_pic_or_sp].Uploadfile_list,[ND_pic_or_sp].is_shenhe,[ND_pic_or_sp].is_can_pinlun,[nd_pic_or_sp].xiangguan_keywords_list,[ND_pic_or_sp].liulang_dengji_group_id,[ND_pic_or_sp].dianshuo_to_look from [ND_pic_or_sp]"
%>
<%
cccccccid=request("cid")
sql2=""
biao="[ND_pic_or_sp_class]"
isziii=cstr(1)









if isziii<>"0" then


if cccccccid<>"all" and cccccccid<>"" then


set Rs33=server.CreateObject("adodb.recordset")
sql="select cstr(parent_id_list) from "&biao&" where id="&cccccccid
Rs33.open sql,newdsoft_conn_obj,1,1

sspa=rs33(0)&","&cccccccid&","

sql2=" and (classid='"&cccccccid&"' or classid in (select cstr(id) from "&biao&" where parent_id_list like '%"&sspa&"%' ) or classid in (select cstr(id) from "&biao&" where  parent_id='"&cccccccid&"') ) "


end if
else

if cccccccid<>"all" and cccccccid<>"" then

sql2=" and (classid='"&cccccccid&"') "
end if


end if


if cstr(request("id"))<>"" then 

sql2=sql2&" and sys_content_type='"&cstr(request("id"))&"' "

end if


sql="select * from [ND_pic_or_sp] where is_shenhe='1' "&sql2&" order by id desc"
%>
<%
maxperpage9030641374=8
xxxx1=clng(8/yyyy1)
if (8 mod yyyy1)<>0 then
xxxx1=xxxx1+1
end if
'获取自身文件名
 aryxx     =split(Request.ServerVariables("SCRIPT_NAME"),"/")   
 fileNamexx   =   aryxx(ubound(aryxx))
strFileName=fileNamexx
set rszcpcp=server.CreateObject("adodb.recordset")
rszcpcp.open sql,newdsoft_conn_obj,1,1
 if not rszcpcp.eof then
rszcpcp.pagesize=MaxPerpage9030641374
totalnumber9030641374=rszcpcp.recordcount
if totalnumber9030641374 mod maxperpage9030641374=0 then
MaxPage= totalnumber9030641374 \ MaxPerpage9030641374
else
MaxPage= totalnumber9030641374 \ MaxPerpage9030641374+1
end if
if int(CurrentPage9030641374)>int(MaxPage) then
CurrentPage9030641374=MaxPage
else
CurrentPage9030641374=CurrentPage9030641374
end if
rszcpcp.absolutepage=CurrentPage9030641374
for ni9030641374=1 to xxxx1
if rszcpcp.eof then exit for
%><%%><tr><%for bj9030641374=1 to yyyy1
if rszcpcp.eof then exit for
%><%
%><td>
<%
sedesdsz="&id="&request("id")
if rszcpcp("is_outlink")="1" then

suuurl=rszcpcp("outlink")
else

suuurl="nd_view_picsp.asp?cpid="&rszcpcp("id")&sedesdsz&"&cid="&rszcpcp("classid")

end if

%>



<table class="cpcpbxx" cellspacing="0" cellpadding="0" border="0">
    <tbody>
        <tr>
            <td valign="middle" align="center">
            <table class="cpcpbx" cellspacing="1" cellpadding="1" bgcolor="#cccccc" border="0">
                <tbody>
                    <tr>
                        <%
sedesdsz="&id="&request("id")
%>
                        <td class="cpcpb" valign="middle" align="center" bgcolor="#ffffff"><a target="_self" href="<%=suuurl%>"><img class="cpcp" alt="" border="0" src="<%=rszcpcp("index_page_pic")%>" /></a></td>
                    </tr>
                    <tr>
                        <td class="nolnk" style="word-break: break-all" valign="middle" align="center" bgcolor="#ffffff" height="15"><a target="_self" href="<%=suuurl%>"><% if cstr(1)="1" then%><%=gotTopic(rszcpcp("title"),22)%><%end if%></a></td>
                    </tr>
                </tbody>
            </table>
            </td>
        </tr>
    </tbody>
</table></td><%
rszcpcp.movenext
next
%></tr><%next
%>  
<%
else
%>
<%=nd_sys_nocontent_msg_x_b%><%nd_sys_nocontent_msg_x_b=""%>
<%end if
%>
<%if 1=1 then %>
<tr>
<td  colspan="7" align="center" height="27" >
<%
call showpage9030641374(strFileName,totalnumber9030641374,MaxPerPage9030641374,true,true,"个",CurrentPage9030641374)
%>
</td>
</tr>
<%end if
%></table><!--nd_complie_linkx_end:[$$picsp_pic_list($xx_request_asp$cid,130,125,450,22,2,8,nd_view_picsp.asp,1,1,$xx_request_asp$id)]xx--><%'complie-link:label-end[$$picsp_pic_list($xx_request_asp$cid,130,125,450,22,2,8,nd_view_picsp.asp,1,1,$xx_request_asp$id)] %></td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
      </table>      </td>
  </tr>
</table>















<style type="text/css">
<!--
.style20 {color: #333333}
-->
</style>
<TABLE cellSpacing=0 cellPadding=0 width=1003 align=center 
background=img/footbg.jpg border=0>
  <TBODY>
    <TR>
      <TD width="137" height=55 rowSpan=2 align=middle class=line20>&nbsp;</TD>
      <TD class=line20 align=left width=544 rowSpan=2><%'complie-link:label-strat[$$nd_web_foot(1,640)] %><!--nd_complie_linkx_start:[$$nd_web_foot(1,640)]xx-->

<div><style type="text/css">
.picsize img {max-height:510px; max-width:510px; width:expression(this.width > 510 && this.height < this.width ? 510: true); height:expression(this.height > 510 ? 510: true);}
.fooootoo {width:640 px;word-break:break-all;}</style></div>
<%
isqy=1

	   biao2="[ND_sys]"

if cstr(isqy)<>"1" then
set rs22t=server.CreateObject("adodb.recordset")
rs22t.open "select top 1 * from "&biao2&" where type='webname_settings'",newdsoft_conn_obj,1,1
else
set rs22t=server.CreateObject("adodb.recordset")
rs22t.open "select top 1 * from "&biao2&" where type='webname_settings_qiye'",newdsoft_conn_obj,1,1
end if

wwwkeywords=""
wwwbuttom=""

if not rs22t.eof then
sss1a=split(rs22t("data"),"|")
wwwname=sss1a(0)
wemail=sss1a(1)
wwwkeywords=sss1a(2)
wwwbuttom=sss1a(3)

end if


%>
<table class="fooootoo" cellspacing="0" cellpadding="0" align="center" border="0">
    <tbody>
        <tr>
            <td><%=wwwbuttom%>&#160;</td>
        </tr>
    </tbody>
</table><!--nd_complie_linkx_end:[$$nd_web_foot(1,640)]xx--><%'complie-link:label-end[$$nd_web_foot(1,640)] %></TD>
      <TD class=line20 vAlign=top align=middle width=322 height=4></TD>
    </TR>
    <TR>
      <TD height="80" align=center vAlign=middle class=line20>&nbsp;</TD>
    </TR>
  </TBODY>
</TABLE>
</body>
</html>






<%
'**************************************************************
' 新 动 软 网 站 管 理系统
' 系统作者: 阮 丁 远(网名:天  下 程 序)
' Copyright (C)  新 动 软 网站 管 理 系 统 版 权 所有
'**************************************************************
%>
<%
if havexpage9030641374="" then
havexpage9030641374=1
sub showpage9030641374(sfilename,totalnumber,maxperpage,ShowTotal,ShowAllPages,strUnit,CurrentPage)
'dim n, i,strTemp,strUrl
if instr(1,sfilename,"?",1)<>0 then
sfilename=left(sfilename,instr(1,sfilename,"?",1)-1)
else
sfilename=sfilename
end if
strUrl=JoinChar(sfilename)
Fy_Url1=Request.ServerVariables("QUERY_STRING")
Fy_a1=split(Fy_Url1,"&")
for Fy_x1=0 to ubound(Fy_a1)
if instr(Fy_a1(Fy_x1),"=")=len(Fy_a1(Fy_x1)) then
Fy_v =""
else
Fy_v = mid(Fy_a1(Fy_x1),instr(Fy_a1(Fy_x1),"=")+1,len(Fy_a1(Fy_x1)))
end if
Fy_Cs_name= left(Fy_a1(Fy_x1),instr(Fy_a1(Fy_x1),"=")-1)
if trim(Fy_Cs_name)<>"page9030641374" then
strUrl=JoinChar(strUrl)
strUrl=strUrl&Fy_Cs_name&"="&Fy_v
end if
Next
if totalnumber mod maxperpage=0 then
n= totalnumber \ maxperpage
else
n= totalnumber \ maxperpage+1
end if
strTemp= "<table align='center' class=maintext><form name='showpages' method='post' action='" & sfilename & "'><tr><td>"
if ShowTotal=true then 
strTemp=strTemp & "共 <b>" & totalnumber & "</b> " & strUnit & "&nbsp;&nbsp;"
end if
strUrl=JoinChar(strUrl)
if CurrentPage<2 then
strTemp=strTemp & "首页 上一页&nbsp;"
else
strTemp=strTemp & "<a class=maintext href='" & strUrl & "page9030641374=1'>首页</a>&nbsp;"
strTemp=strTemp & "<a class=maintext href='" & strUrl & "page9030641374=" & (CurrentPage-1) & "'>上一页</a>&nbsp;"
end if
if n-currentpage<1 then
strTemp=strTemp & "下一页 尾页"
else
strTemp=strTemp & "<a class=maintext href='" & strUrl & "page9030641374=" & (CurrentPage+1) & "'>下一页</a>&nbsp;"
strTemp=strTemp & "<a class=maintext href='" & strUrl & "page9030641374=" & n & "'>尾页</a>"
end if
strTemp=strTemp & "&nbsp;页次:<strong><font color=red>" & CurrentPage & "</font>/" & n & "</strong>页 "
strTemp=strTemp & "&nbsp;<b>" & maxperpage & "</b>" & strUnit & "/页"
'if ShowAllPages=True then
'strTemp=strTemp & "&nbsp;<select name='page9030641374' id='page' size='1' onchange='javascript:submit()'>"   
'for i = 1 to n   
'strTemp=strTemp & "<option value='" & i & "'"
'if cint(CurrentPage)=cint(i) then strTemp=strTemp & " selected "
'strTemp=strTemp & ">第" & i & "页</option>"   
' next
'strTemp=strTemp & "</select>"
'end if
strTemp=strTemp & "</td></tr></form></table>"
response.write strTemp
end sub
end if
%>